package myserver

import (
	"net/http"
	"fmt"
	"strings"
)

func HeaderReturn(w http.ResponseWriter, r *http.Request){
	for key,value := range r.Header{
		fmt.Fprintln(w, key, "-->", value)
		ip := strings.Split(r.RemoteAddr, ":")
		fmt.Fprintln(w, "ClientIP:", ip[0])
	}
}
